package com.ybb.production.mapper;

import com.ybb.production.domain.GarmentProductionCuttingBedInfo;
import com.ybb.production.dto.GarmentProductionCuttindBedQueryDTO;
import com.ybb.production.responce.GarmentProductionCuttingBedPageResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 裁单信息Mapper接口
 *
 * @author ruoyi
 * @date 2023-09-09
 */
public interface GarmentProductionCuttingBedInfoMapper {
    /**
     * 查询裁单信息
     *
     * @param id 裁单信息主键
     * @return 裁单信息
     */
    public GarmentProductionCuttingBedInfo selectGarmentProductionCuttingBedInfoById(Long id);

    /**
     * 查询裁单信息列表
     *
     * @param garmentProductionCuttingBedInfo 裁单信息
     * @return 裁单信息集合
     */
    public List<GarmentProductionCuttingBedPageResp> selectGarmentProductionCuttingBedInfoList(GarmentProductionCuttindBedQueryDTO garmentProductionCuttingBedInfo);

    /**
     * 新增裁单信息
     *
     * @param garmentProductionCuttingBedInfo 裁单信息
     * @return 结果
     */
    public int insertGarmentProductionCuttingBedInfo(GarmentProductionCuttingBedInfo garmentProductionCuttingBedInfo);

    /**
     * 修改裁单信息
     *
     * @param garmentProductionCuttingBedInfo 裁单信息
     * @return 结果
     */
    public int updateGarmentProductionCuttingBedInfo(GarmentProductionCuttingBedInfo garmentProductionCuttingBedInfo);

    /**
     * 删除裁单信息
     *
     * @param id 裁单信息主键
     * @return 结果
     */
    public int deleteGarmentProductionCuttingBedInfoById(Long id);

    /**
     * 批量删除裁单信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGarmentProductionCuttingBedInfoByIds(Long[] ids);

    String qrySumCuttingBedByOrderIds(@Param("completePriceIdsList") List<String> completePriceIdsList);

    List<GarmentProductionCuttingBedInfo> selectBedInfoByOrderId(@Param("orderId") Long orderId);

    void deleteCuttingBedByOrderIds(Long[] orderIds);
}
